package com.junjie.checkin.request.gift;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 洪浚杰
 * @description 礼品订单分页请求参数
 * @date 2025/6/18 16:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GiftOrderPageRequest {
    private Integer page;
    private Integer pageSize;
    private String keyword;

    public void initDefault(){
        if (page == null || page <=0){
            this.page=1;
        }
        if (pageSize == null || pageSize <=0){
            this.pageSize = 10;
        }
    }
}
